package jp.co.sn.mml.pojo.tmksitembt;


public class TmksitembtId implements java.io.Serializable { 

	//項目コード
	private String itemCd;
	//行番号
	private Long seq;

	/** default constructor */
	public TmksitembtId(){

	}

	/** full constructor */
	public TmksitembtId(String itemCd,Long seq){
		this.itemCd = itemCd;
		this.seq = seq;
	}

	//Property accessors
	public String getItemCd(){
		return this.itemCd;
	}

	public void setItemCd(String itemCd){
		this.itemCd=itemCd;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmksitembtId))
			return false;

		TmksitembtId castOther = (TmksitembtId) other;

		return ((this.getItemCd() ==  castOther.getItemCd())
				||(this.getItemCd()!=null && castOther.getItemCd() !=null 
					&& castOther.getItemCd() !=null 
					&& this.getItemCd().equals(castOther.getItemCd())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getItemCd() == null ? 0 : this.getItemCd().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}